home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
comm
/
maxs
/
mp2.lha
/
C
/
SupportUtil.Text
< prev
next >
Wrap
Text File
|
1997-11-09
|
5KB
|
227 lines
/X\2 CGI support pack
~~~~~~~~~~~~~~~~~~~~~
All these commands should go in BBS:c/ for best use.
The commands are:-
AddKey - Adds a string of keypresses to the input chain
AddNum - Simple number adding like ADD in amos.
CursPos - Lets you specify a cursor position in ansi files
DumpHour - Returns which hour of the day it is (0-23)
DumpHourQuarter - Returns which quarter of the day it is (0-3)
DumpMsgData - Returns information about message being written
DumpUserData - Dump User Data - latest version.
FidoCarasoul - An example script from my own collection.
IncNum - Add a number to a variable
Locate - Locates the cursor on screen
oEcho - Echo replacement. Changes 0's to o's
SectionHour.Script - A script to show you how to change menu ansi's on the hour.
SubNum - Subtract a number from a variable
In more detail
~~~~~~~~~~~~~~
AddKey
~~~~~~
Params: Node "Message"
Node is the node number you wish to send the strig to. "Message" is a set of
keypresses that you wish to fake.
eg. AddKey 1 "S"
AddNum
~~~~~~
Params: Variable Amount Min Max
Adds amount to a variable. If the number should pass MAX then it is reset
to MIN. If no variable exists, it is created automatically with amount MIN.
eg. AddNum Counter 1 0 9999
CursPos
~~~~~~~
Params: Filename X-pos Y-pos
Places a cursor position code on the end of FILENAME. Do *NOT* edit this
script in a text ed that doesn't preserve escape codes!!!!!!
eg. CursPos Menu.ansi 10 15
DumpHour
~~~~~~~~
Params: None
This returns the current hour of the day in its output. You will need to
redirect this to be useful. All results will be 0-23.
eg. DumpHour >Hour
DumpHourQuarter
~~~~~~~~~~~~~~~
Params: None
This is similiar to DumpHour, but returns which 6 hour period of the day it
is. Returns 0-3.
e.g. DumpHourQuarter >HourQuarter
DumpMsgData
~~~~~~~~~~~
Params: Node
This fills 3 ENV variables with information about the current message being
written/read.
MPMsgFrom?
MPMsgTo?
MPMsgSubject?
(?'s are the node number, like dump user data)
eg. DumpMsgData 1
DumpUserData
~~~~~~~~~~~~
Fully working version of this util. Refer to /X\2 dox for more info.
FidoCarasoul
~~~~~~~~~~~~
This is an example carasoul script from my own system. I have a dir called
FidoANSI, containing 6 ansi's labeled 0-5.
This script is run INSTEAD of displaying an ansi in a max's text line &
it returns the right ansi to be displayed by /X\2 :)
E.g. %"BBS:C/FidoCarasoul"
IncNum
~~~~~~
Params: Variable Amount
Similiar to AddNum, except it does not handle min or max amounts.
e.g. IncNum Counter 1
Locate
~~~~~~
Params: X-pos Y-pos
This simply places the cursor on the current screen. To be used mainly for
filebase scripts.
eg. Locate 10 15
oEcho
~~~~~
Params: Text
This is a cut down Echo command for 1 line text files only. It replaces
0's with o's and that's the only real difference!
eg. oEcho "You have access 10,000!"
returns: You have access 1o,ooo!
SectionHour.Script
~~~~~~~~~~~~~~~~~~
Params: Menu_Name
A complicated script that will display a menu ansi depending on the time of
day!. It assumes that you refer to your menus by MENU:
In a directory MENU_NAME, you have 4 main ansi files called Hour0 - Hour3.
These 4 ansi's handle the quarter hour of the day. Have 4 identical ansi's
if required. These are masters incase one of the hour ansi's are missing.
You then just create ansi's named 0-23 to be displayed. Any missing ones
will display the main 1/4 day ansi.
e.g. %"bbs:c/SectionHour.Script MainMenu"
SubNum
~~~~~~
Params: Variable Amount
Exactly the same as IncNum, except this subtracts the number from the
variable.
e.g. SubNum Counter 1
If anyone has any questions, please mail me :)
Email: nsa_design@geocities.com
FLuFFy NeT: 888:100/0
BBS:
.............................................................
: :
: ____ó\ ____ó\ _____ó\ ____ó\ __ _ó\ _____ó\ :
: (÷~___~\ (÷~___/ (óò___÷~\(÷~___~\ //÷) /ó///÷~/ø\ \\ :
: /\/ ~ _/ /\/|__\ /\/| / ///\/ ~ _/ /ø / / /// /\ñ/\ \\ :.............
: /\ó|\ \\ /ø ó|___/ _ ó/ ø//\ó|\ \\ // /_/ // \\\\ / ø/ : :
: \__|/\ \\\___ //\ó__ // \__|/\ \\//___/ ø/ \__\ / // : rUN oN :
: \_/ \// \// \_/ ~ \// \_/ : /X\ 2.00 :
:...........................................................: :
: :
: o-7dAY^cODERS^gFX^mUSIC^aDULTS^fLUFFYnET^aMIGAoNLY! :
: :
: nODE1 +44 <o>1635 82672o 33K6 .............................. :
: nODE2 +44 <o>1635 8272o3 14K4 : : :
: nODE3 +44 <o>1635 PRIVATE ATM : ____ó\ ____ó\ ____ó\ : :
: : (öö_~÷÷\ (öö_~÷÷\ (÷~___/ : :
: sTAFF: n!K! pERK tECHN!X : /\/ / / /\/ / / \/ \ : :
:................................: / |/ \\/ |/ \\ __\óø\ :..:
: \_ó|_ ø/\_ó|_ ø//__~ö// :
: \// \// ~ \// :
:............................: